package com.zhu.char07

/**
 *
 * @version 1.0
 * @author study
 * @date 2020/9/5 21:57
 *
 */
object Scala_TestFun05 {
  def main(args: Array[String]): Unit = {
    //简化 规约 折叠
    val list = List(1, 2, 3, 4)
    println(list.reduce(_ + _))

  }
}
